package com.radar.io;

import org.meteoinfo.global.PointD;

import java.util.List;
import java.util.stream.IntStream;

public class VCSData {

    public double[][] data;

    public double[] lon;

    public double[] lat;

    public double[] height;

    public void setLonLat(List<PointD> pointDList) {
        lon = new double[pointDList.size()];
        lat = new double[pointDList.size()];
        IntStream.range(0,pointDList.size()).forEach(i -> {
            lon[i] = pointDList.get(i).X;
            lat[i] = pointDList.get(i).Y;
        });
    }
}
